<%-- 
    Document   : ResponderMensagen
    Created on : 10/12/2011, 19:50:43
    Author     : Milton
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
       <h2>Responder</h2>
        <hr></hr>
        <div >
        <form name="cadMenssagem" action="./ServletActionMensagen" method="POST">
            <input type="hidden" name="action" value='1' />
            <input type="hidden" name="destinatario" value="<%=(String) request.getAttribute("idDestinatario")%>" />
            Para: <input type="text" name="nomeDest" value='<%=(String) request.getAttribute("nome")%>' readonly="readonly" />
            <br>Titulo</br><input type="text" name="titulo" value="" size="59" />
            <br>Descrição</br><textarea name="descricao" rows="6" cols="45">
            </textarea>          
            <p><input type="submit" value='Responder' name="btn" /></p>
        </form>
        </div>
        <div align="center" width="100%" height="100%" >
        <% String mensagem = (String) request.getAttribute("mensagem"); 
        if(mensagem!=null){%>
        <%= mensagem %>
        <%}%>
        </div>
    </body>
</html>
